<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="attribute" tagdir="/WEB-INF/tags/attribute"%>
<title>属性定义器测试和演示页面</title>
<script type="text/javascript">
function myCallback(attribute){
	var returnString = "[Success]\r\n";
	returnString += "attributeId:"+attribute.attributeId+"\r\n";
	returnString += "attributeName:"+attribute.attributeName+"\r\n";
	returnString += "attributeType:"+attribute.attributeType+"\r\n";
	returnString += "attributeDataType:"+attribute.attributeDataType+"\r\n";
	returnString += "defaultValue:"+attribute.defaultValue+"\r\n";
	returnString += "isRequired:"+attribute.isRequired+"\r\n";
	returnString += "status:"+attribute.status;
	alert(returnString);
}
</script>

<table style="width:1300px" cellspacing="0" cellpadding="0" border="0" class="dataintable">
	<tr>
		<th width="200px;">定义新属性</th>
		<td>
			<attribute:attributeDefiner definerId="definer1" module="1" callbackFunc="myCallback">
				<h3 class="caption" style="margin:0 15px; width:520px;">[tip:you can add something below here!]</h3>
			</attribute:attributeDefiner>
		</td>
	</tr>
	<tr>
		<th width="200px;">显示已有属性 attributeId=1</th>
		<td>
			<attribute:attributeDefiner definerId="definer2"  attributeId="1" callbackFunc="myCallback">
				<h3 class="caption" style="margin:0 15px; width:520px;">[tip:you can add something below here!]</h3>
			</attribute:attributeDefiner>
		</td>
	</tr>
</table>



		
